package com.woniuxy.entity;

import org.springframework.context.annotation.Configuration;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

public class MyClazz {
    String name;
    List<Student> Students;
    Teacher teacher;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public List<Student> getStudents() {
        return Students;
    }

    public void setStudents(List<Student> students) {
        Students = students;
    }

    public Teacher getTeacher() {
        return teacher;
    }

    public void setTeacher(Teacher teacher) {
        this.teacher = teacher;
    }

    public MyClazz(String name, List<Student> students, Teacher teacher) {
        this.name = name;
        Students = students;
        this.teacher = teacher;
    }

    public MyClazz() {
    }

    @Override
    public String toString() {
        return "MyClazz{" +
                "name='" + name + '\'' +
                ", Students=" + Students +
                ", teacher=" + teacher +
                '}';
    }
}
